/*
 * @Description: 指令注册
 * @Author: HuiSir<273250950@qq.com>
 * @Date: 2021-10-26 16:01:20
 * @LastEditTime: 2025-08-15 09:22:16
 */
import { App } from "vue";
import contextMenu from "./contextMenu";
import copy from "./copy";
import permission from "./permission";

export default (app: App<unknown>) => {
  // 右键菜单
  app.directive("contextMenu", contextMenu);
  // 拷贝到剪贴板
  app.directive("copy", copy);
  // 权限验证
  app.directive("permission", permission);

  return app;
};
